package kuba.gui;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JList;

import kuba.bean.CD;

public class AuthorCdGui extends JFrame implements ActionListener {

    private static final long serialVersionUID = 1L;


    JButton btnOk;
    JList<CD> list;
    JLabel lblCds;

    public AuthorCdGui()  {

        setBounds(0,0,350,300);
        setResizable(false);

        getContentPane().setLayout(null);

        btnOk = new JButton("OK");
        btnOk.setBounds(127, 208, 89, 23);
        btnOk.addActionListener(this);
        getContentPane().add(btnOk);

        list = new JList<CD>();
        list.setBounds(10, 29, 312, 169);
        getContentPane().add(list);

        lblCds = new JLabel("CD");
        lblCds.setBounds(155, 11, 14, 14);
        getContentPane().add(lblCds);

    }

    @Override
    public void actionPerformed(ActionEvent arg0) {
        this.setVisible(false);

    }


}
